﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wjtour.Common;
using Hjp.FrameWork.Common;

namespace Wjtour.Web.Front
{
    public partial class travelindex : BasePage
    {
        private Wjtour.BLL.food_bll _bll = new BLL.food_bll();
        private Wjtour.BLL.resturant_bll _hbll = new BLL.resturant_bll();
        private Wjtour.BLL.hotel_bll _hotelBll = new BLL.hotel_bll();
        private Wjtour.BLL.traffic_bll _trafficBll = new BLL.traffic_bll();
        private Wjtour.BLL.line_bll _lineBll = new BLL.line_bll();
        private Wjtour.BLL.travelagency_bll _travelagencyBll = new BLL.travelagency_bll();
        private Wjtour.BLL.goods_bll _goodsBll = new BLL.goods_bll();
        private Wjtour.BLL.shoppingmall_bll _shoppingmallBll = new BLL.shoppingmall_bll();
        private Wjtour.BLL.entainment_bll _entainmentBll = new BLL.entainment_bll();
        private Wjtour.BLL.nongjiale_bll _nongjialeBll = new BLL.nongjiale_bll();

        protected List<Wjtour.Domain.resturant> resturants = new List<Domain.resturant>();
        protected List<Wjtour.Domain.food> caiyao = new List<Domain.food>();
        protected List<Wjtour.Domain.food> xiaochi = new List<Domain.food>();
        protected List<Wjtour.Domain.hotel> hotels = new List<Domain.hotel>();
        protected List<Wjtour.Domain.traffic> traffics = new List<Domain.traffic>();
        protected List<Wjtour.Domain.line> lines = new List<Domain.line>();
        protected List<Wjtour.Domain.travelagency> travelagencies = new List<Domain.travelagency>();
        protected List<Wjtour.Domain.goods> goods = new List<Domain.goods>();
        protected List<Wjtour.Domain.shoppingmall> shoppingMalls = new List<Domain.shoppingmall>();
        protected List<Wjtour.Domain.entainment> entainments = new List<Domain.entainment>();
        protected List<Wjtour.Domain.nongjiale> nongjiales = new List<Domain.nongjiale>();

        protected void Page_Load(object sender, EventArgs e)
        {
            resturants = _hbll.GetList(4);

            caiyao = _bll.GetList(7, 1);
            xiaochi = _bll.GetList(7, 2);

            hotels = _hotelBll.GetList(17);
            traffics = _trafficBll.GetList(9);
            lines = _lineBll.GetList(5);
            travelagencies = _travelagencyBll.GetList(6);
            goods = _goodsBll.GetList(14);
            shoppingMalls = _shoppingmallBll.GetList(4);
            entainments = _entainmentBll.GetList(3);
            nongjiales = _nongjialeBll.GetList(3);
        }
    }
}
